package com.zrz.resp;

import com.google.gson.annotations.SerializedName;

public class WechatOpenIdResp {
    @SerializedName("errcode")
    private Integer code;
    @SerializedName("errmsg")
    private String message;
    @SerializedName("openid")
    private String openId;
    @SerializedName("session_key")
    private String sessionKey;

    public WechatOpenIdResp() {
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public String getOpenId() {
        return this.openId;
    }

    public String getSessionKey() {
        return this.sessionKey;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WechatOpenIdResp)) {
            return false;
        } else {
            WechatOpenIdResp other = (WechatOpenIdResp)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$code = this.getCode();
                    Object other$code = other.getCode();
                    if (this$code == null) {
                        if (other$code == null) {
                            break label59;
                        }
                    } else if (this$code.equals(other$code)) {
                        break label59;
                    }

                    return false;
                }

                Object this$message = this.getMessage();
                Object other$message = other.getMessage();
                if (this$message == null) {
                    if (other$message != null) {
                        return false;
                    }
                } else if (!this$message.equals(other$message)) {
                    return false;
                }

                Object this$openId = this.getOpenId();
                Object other$openId = other.getOpenId();
                if (this$openId == null) {
                    if (other$openId != null) {
                        return false;
                    }
                } else if (!this$openId.equals(other$openId)) {
                    return false;
                }

                Object this$sessionKey = this.getSessionKey();
                Object other$sessionKey = other.getSessionKey();
                if (this$sessionKey == null) {
                    if (other$sessionKey != null) {
                        return false;
                    }
                } else if (!this$sessionKey.equals(other$sessionKey)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WechatOpenIdResp;
    }



    public String toString() {
        return "WechatOpenIdResp(code=" + this.getCode() + ", message=" + this.getMessage() + ", openId=" + this.getOpenId() + ", sessionKey=" + this.getSessionKey() + ")";
    }}